package com.nercl.model;

import java.io.Serializable;

public class Emp implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	private Integer empno;
	private Dept dept;//部门实体类对象
	private String empname;
	private String password;
	
	public Emp() {
	}
	
	public Emp(Integer empno) {
		this.empno = empno;
	}
	
	public Emp(Integer empno, Dept dept, String empname,String password) {
		this.empno = empno;
		this.dept = dept;
		this.empname = empname;
		this.password = password;
	}

	public Integer getEmpno() {
		return empno;
	}

	public void setEmpno(Integer empno) {
		this.empno = empno;
	}

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getEmpname() {
		return empname;
	}

	public void setEmpname(String empname) {
		this.empname = empname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Emp [empno=" + empno + ", dept=" + dept + ", empname=" + empname + ", password=" + password + "]";
	}
	
}

